<?php
include_once '../controlador_bd/CConexion.php';

class CValorNormal {
	private $codigoExamen;
	private $nombreValor;
	private $valor;
	private $sexo;
	
	//Setters
	public function setCodigoExamen( $codExa ) {
		$this -> codigoExamen = $codExa;
	}
	
	public function setNombreValor( $nombVal ) {
		$this -> nombreValor = $nombVal;
	}
	
	public function setValor( $val ) {
		$this -> valor = $val;
	}
	
	public function setSexo( $sexo ) {
		$this -> sexo = $sexo;
	}
	
	public function guardar() {
		$objConex = new CConexion;
		$objConex -> conectar();
		pg_query("INSERT INTO valornormal values (default,'" . $this -> codigoExamen . "','" . $this -> nombreValor . "','" . $this -> valor . "','" . $this -> sexo . "');"); 
		$objConex -> desconectar();
	}
}
?>